home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / Paint Shop Pro / PSP900enTR.exe / Data1.cab / _3DDA0ED267CB46B9BBCC2F852FFFF60F < prev    next >
Encoding:
Text File  |  2004-08-16  |  775 b   |  24 lines

  1. from JascApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': 'Joe Fromm',
  6.         'Copyright': 'Copyright ⌐ 2002 Jasc Software Inc., all rights reserved.',
  7.         'Description': 'Select the Text tool.',
  8.         'Host': 'Paint Shop Pro 8',
  9.         'Host Version': '8.00'
  10.         }
  11.  
  12. def Do(Environment):
  13.  
  14.     # we need at least one image for this to work
  15.     if len(App.Documents) < 1:
  16.         App.Do(Environment,  'MsgBox', {
  17.                 'Buttons': App.Constants.MsgButtons.OK, 
  18.                 'Icon': App.Constants.MsgIcons.Stop, 
  19.                 'Text': 'Command could not complete because there is no active document.'
  20.                 })
  21.         return  
  22.  
  23.     LastTool = App.Do( Environment, 'SelectTool', { 'Tool': 'Text' } )
  24.